#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "source/weektable.h"

namespace Ui {
    class MainDepartment;
}

class MainDepartment : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainDepartment(QWidget *parent = 0);
    ~MainDepartment();

    void addDock(QWidget *obj, QString nameobj, QString namewin);

private slots:
    WeekTable *createRaspisGroup();
    WeekTable *createRaspisTeacher();

    void on_action_mGroup_triggered();

    void on_action_mTeacher_triggered();

    void on_action_mSubject_triggered();

    void on_action_mExit_triggered();

    void on_action_mConnectBase_triggered();

    void on_action_mRaspisGroup_triggered();

    void on_action_mShemaGroup_triggered();

    void on_action_mRoom_triggered();

    void on_action_mRaspisTeacher_triggered();

    void on_action_mRaspisRoom_triggered();

    void on_action_mShemaTeacher_triggered();

    void on_action_mShemaRoom_triggered();

    void on_action_mScheduleGroupDock_triggered();

    void on_action_mScheduleTeacherDock_triggered();

    void on_action_mScheduleRoomDock_triggered();

    void on_action_mSpeciality_triggered();

    void on_action_mProspective_triggered();

signals:
    void UpdateDB();

private:
    void createToolBars();
    Ui::MainDepartment *ui;

    QToolBar *ScheduleToolBar,
             *DirectoryToolBar;
};

#endif // MAINWINDOW_H
